package com.service_api.service;

import com.service_api.model.WordCount;
import com.service_api.repository.WordCountRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WordCountService {
    @Autowired
    WordCountRepository wordCountRepository;

    public List<WordCount> getWordCountList(String city) {
        return wordCountRepository.findAllByCity(city);
    }
}
